<script lang="ts" setup>
defineProps({
  title: {
    type: String,
    default: '支付开关',
  },
  labelWidth: {
    type: String,
    default: '70px',
  },
})
</script>

<template>
  <view class="wot-radio-group-box">
    <view class="wot-radio-title" :style="{ width: labelWidth }">
      {{ title }}
    </view>
    <view class="flex-1">
      <slot name="default" />
    </view>
  </view>
</template>

<style lang="scss" scoped>
.wot-radio-group-box {
    display: flex;
    align-items: flex-start;
    padding: 20rpx 10rpx 30rpx 20rpx;
    border-top: 1px solid #e8e8e8;
    margin-left: 20rpx;
}
</style>
